// TitleSequence.h: interface for the CTitleSequence class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_TITLESEQUENCE_H__7E5E7061_9BB2_11D5_AD0F_A0D756C10027__INCLUDED_)
#define AFX_TITLESEQUENCE_H__7E5E7061_9BB2_11D5_AD0F_A0D756C10027__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "Efx.h"

#define CUBESCOUNT	50

class CTitleSequence : public CEfx  
{
private:	

	PDIRECT3DVERTEXBUFFER8	m_pvbCube;
	
	CImageQuad*				m_piqTitle[10];
	CImageQuad*				m_piqSubTitle[10];

	FLOAT					m_pfShift[CUBESCOUNT];
	he3d_CVector			m_pvPosition[CUBESCOUNT];
	he3d_CVector			m_pvScale[CUBESCOUNT];

	FLOATKEY				m_fSpline[5][100];

	DWORD					m_dwTitleState;
	DWORD					m_dwRenderSubTitle;

	DWORD					m_dwAlpha;
	DWORD					m_dwEfx;

public:

	CTitleSequence( PDIRECT3DDEVICE8 pDevice );
	virtual ~CTitleSequence();

	virtual BOOL UpdateFrame( FLOAT fTime );
	virtual BOOL RenderEfx();

};

#endif // !defined(AFX_TITLESEQUENCE_H__7E5E7061_9BB2_11D5_AD0F_A0D756C10027__INCLUDED_)
